import request from '@/utils/request'
export function getCaseStatuses () {
  return request({
    url: '/api/Case/Case/GetCaseStatuses',
    method: 'get',
  })
}

export function getCases (data) {
  return request({
    url: '/api/Case/Case/GetCases',
    method: 'post',
    data
  })
}

export function getMyCaseEmployeeTypes () {
  return request({
    url: '/api/Case/Case/GetMyCaseEmployeeTypes',
    method: 'get',
  })
}

export function getMyCases (data) {
  return request({
    url: '/api/Case/Case/GetMyCases',
    method: 'post',
    data
  })
}

export function getCase (caseId) {
  return request({
    url: '/api/Case/Case/GetCase',
    method: 'get',
    params: { caseId }
  })
}

export function saveCase (data) {
  return request({
    url: '/api/Case/Case/SaveCase',
    method: 'post',
    data
  })
}

export function getExpenseTypes () {
  return request({
    url: '/api/Case/Case/GetExpenseTypes',
    method: 'get',
  })
}

export function getFlowTrees () {
  return request({
    url: '/api/Case/Case/GetFlowTrees',
    method: 'get',
  })
}